package com.yswy.app.service;

import com.alipay.api.response.AlipayTradePayResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.common.zfbOrder.ZfbKeyVo;
import com.yswy.domain.entity.AgreementOrder;
import com.yswy.domain.entity.PayOrderZfbLog;
import com.yswy.domain.entity.VipPrice;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mhy
 * @since 2020-02-18
 */
public interface PayOrderZfbLogService extends IService<PayOrderZfbLog> {

    PayOrderZfbLog generateOrder(String orderid ,
                                 String trademsg ,
                                 ZfbKeyVo zfbKeyVo,
                                 String callbackUrl,
                                 String uid,
                                 VipPrice vipPrice,
                                String ip);



    PayOrderZfbLog generateAgreementOrder(String orderid ,
                                          AlipayTradePayResponse response ,
                                 ZfbKeyVo zfbKeyVo,
                                 String callbackUrl,
                                 String uid ,Integer rechargeCount, AgreementOrder agreementOrder);


    void callbackPayOrder(HttpServletRequest request, HttpServletResponse response)throws Exception;
    void callbackZfbYwPayOrder(String orderid);
}
